﻿/**
* ...
* @author Default
* @version 0.1
*/

package ru.vega_int.firsoff.as3.events {
	import flash.events.Event;

	public class SlideShowContainerEvents extends Event{
		
		public var eventObject:Object;
		public var typeEvent:String;
		public static const LOAD:String = 'load';					//	полная загрузка
		public static const ERROR:String = 'error';					//	ошибка загрузки
		public static const HIDE:String = 'hide';					//	при скрытии
		public static const SHOW:String = 'show';					//	при всплытии из альфы
		
		public function SlideShowContainerEvents(type:String, eventObject:Object=null)
		{
			this.typeEvent = type;
			this.eventObject = eventObject;
			super(type);
		};

		public override function clone():Event 
		{
			return new SlideShowContainerEvents(type, eventObject);
		};
		
		 public override function toString():String
		{
			return formatToString(this.typeEvent, "type", "bubbles", "cancelable", "eventPhase", "message");
		};
		
	}
	
}
